<f:view xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:c="http://java.sun.com/jstl/core"
		xmlns:af="http://myfaces.apache.org/trinidad"
		xmlns:afh="http://myfaces.apache.org/trinidad/html"
        xmlns:ppc="http://www.sungard.de/carnot/web/portal-plugin/common">
    <f:loadBundle basename="CommonMessages" var="commonMsg" />
    <af:document title="#{commonMsg.notes}">
        <af:form>
            <af:panelPage>
                <f:facet name="messages">
                    <af:messages id="globalFilterDialogMessages"/>
                </f:facet>
                <f:facet name="navigation2">
                    <af:navigationPane hint="bar" styleClass="activityNotesNavBar">
                        <af:commandNavigationItem id="apply-button"
                            textAndAccessKey="#{commonMsg.apply}" text="#{commonMsg.apply}"
                            action="#{activityInstanceNotes.apply}"
                            rendered="#{activityInstanceNotes.editMode}">
                            <af:returnActionListener value="#{null}"/>
                        </af:commandNavigationItem>
                        <af:commandNavigationItem id="cancel-button"
                            textAndAccessKey="#{activityInstanceNotes.editMode ? commonMsg.cancel : commonMsg.close}" 
                            text="#{activityInstanceNotes.editMode ? commonMsg.cancel : commonMsg.close}"
                            action="#{activityInstanceNotes.cancel}"
                            immediate="true">
                            <af:returnActionListener value="#{null}"/>
                        </af:commandNavigationItem>
                    </af:navigationPane>
                </f:facet>

                <ppc:noteList noteInfoItems="#{activityInstanceNotes.allNotes}"/>

            </af:panelPage>
        </af:form>
    </af:document>
</f:view>